package com.hexinfo.dmpro.common.base;

import lombok.Data;

/**
 * @Package com.hexinfo.dmpro.common.base
 * @ClassName PageResult
 * @Description 分页结果对象
 * @Author gj.xu
 * @Date 2022/11/18 18:41
 * @Version v2.0
 **/
@Data
public class PageResult {

    private Object content;
    private long totalElements;

    public PageResult(Object content, Page page) {
        this.content = content;
        this.totalElements = page.getTotal();
    }

    public PageResult(Object content, long totalElements) {
        this.content = content;
        this.totalElements = totalElements;
    }

}
